package com.ruoyi.product.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠持有对象 coupon_have
 * 
 * @author guoguoa
 * @date 2025-01-07
 */
public class CouponHave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 优惠卷名 */
    @Excel(name = "优惠卷名")
    private Integer couponId;

    /** 持有者 */
    @Excel(name = "持有者")
    private Integer userId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer del;

    /** 用户 */
    @Excel(name = "用户")
    private SysUser sysUser;

    /** 用户 */
    @Excel(name = "优惠卷")
    private ProductCoupon productCoupon;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCouponId(Integer couponId) 
    {
        this.couponId = couponId;
    }

    public Integer getCouponId() 
    {
        return couponId;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public ProductCoupon getProductCoupon() {
        return productCoupon;
    }

    public void setProductCoupon(ProductCoupon productCoupon) {
        this.productCoupon = productCoupon;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("couponId", getCouponId())
            .append("userId", getUserId())
            .append("del", getDel())
            .append("sysUser", getSysUser())
            .append("productCoupon", getProductCoupon())
            .toString();
    }
}
